package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class ECopyInfoType extends Object
    {
        public var __value:int;
        private static var __values:Array = [];
        public static const _ECopyInfoTypeRing:int = 0;
        public static const ECopyInfoTypeRing:ECopyInfoType = new ECopyInfoType(_ECopyInfoTypeRing);
        public static const _ECopyInfoTypeEnd:int = 1;
        public static const ECopyInfoTypeEnd:ECopyInfoType = new ECopyInfoType(_ECopyInfoTypeEnd);
        public static const _ECopyInfoTypeEvenCut:int = 2;
        public static const ECopyInfoTypeEvenCut:ECopyInfoType = new ECopyInfoType(_ECopyInfoTypeEvenCut);
        public static const _ECopyInfoTypeExchange:int = 4;
        public static const ECopyInfoTypeExchange:ECopyInfoType = new ECopyInfoType(_ECopyInfoTypeExchange);

        public function ECopyInfoType(param1:int)
        {
            this.__value = param1;
            __values[param1] = this;
            
        }

        public function value() : int
        {
            return this.__value;
        }

        public function equals(param1:Object) : Boolean
        {
            if (param1 == this)
            {
                return true;
            }
            var _loc_2:* = param1 as ERMICallModel;
            if (_loc_2 == null)
            {
                return false;
            }
            return this.__value == _loc_2.value();
        }

        public function hashCode() : int
        {
            return 5 * this.__value;
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            
        }

        public static function convert(param1:int) : ECopyInfoType
        {
            return __values[param1];
        }

        public static function __read(param1:SerializeStream) : ECopyInfoType
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 5)
            {
                throw new MarshalException();
            }
            return ECopyInfoType.convert(_loc_2);
        }

    }
}
